import { NgModule, Component } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { StaffAttendanceComponent }     from './staff-attendance.component';

import { DefaultInterfaceComponent }     from './default-interface/default-interface.component';
import { SuccessfulInterfaceComponent } from './successful-interface/successful-interface.component';
import { ApplyForLeaveComponent } from './apply-for-leave/apply-for-leave.component';
import { MyLeaveRecordComponent } from './my-leave-record/my-leave-record.component';

import { StaffBusinessRecordComponent } from './staff-business-record/staff-business-record.component';
import { MyHolidayComponent } from './my-holiday/my-holiday.component';

const StaffAttendanceRoutes: Routes = [
  
    {
        path: 'staff-attendance',
        component: StaffAttendanceComponent,
        
        children: [
          {
            path: 'default-interface',
            component: DefaultInterfaceComponent
          },
          {
            path: 'apply-for-leave',
            component: ApplyForLeaveComponent
          },
          {
            path: 'successful-interface',
            component: SuccessfulInterfaceComponent
          },
          {
            path: 'my-leave-record',
            component: MyLeaveRecordComponent
          },
          {
            path: 'staff-business-record',
            component: StaffBusinessRecordComponent
          },
          {
            path: 'my-holiday',
            component: MyHolidayComponent
          }
          /*
          {
            path: 'crisis-list',
            component: CrisisListComponent,
            
            children: [
              
              {
                path: ':id',
                component: LeaveDetailComponent
              }
              
              
            ]
            
          }
          */
        ]
        
        
    }
    
    

];

@NgModule({
    imports: [
        RouterModule.forChild(StaffAttendanceRoutes)
    ],
    exports: [
        RouterModule
    ]
})
export class StaffAttendanceRoutingModule { }